class SpecConfig {
	private final static String propsFile = 'spec.properties'
	static Map props = [:]

	static {
		new File(propsFile).readLines().grep{it.trim()}.each{
			def arr = it.split('=')
			props[arr[0]] = arr.size() == 2 ? arr[1] : ''
		}
	}

	def static File getFile(String file){
		return new File((props.beginDir ?: './') + file) 
	}

	def static boolean isDebug(){
		return 'true' == props.debug
	}

	def static boolean isReport(){
		return 'true' == props.report
	}
}
